package com.tedu.weibo.pojo.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UserLoginDTO {
    @ApiModelProperty(value = "用户名",required = true,example = "王克晶")
    //@NotEmpty(message = "用户名不能为空")
    //@NotBlank(message = "用户名不能为空")
    //@Pattern(regexp = "[\\u4e00-\\u9fa5a-zA-Z0-9_]{3,15}",message = "用户名格式错误")
    //@Size(min = 1,max = 20,message = "用户名长度必须在1-20之间")
    private String username;
    @ApiModelProperty(value = "密码",required = true,example = "!q123456")
    private String password;

}
